package com.wnx.job.modules.rms.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wnx.job.modules.rms.mapper.RmsStudentCadreMapper;
import com.wnx.job.modules.rms.model.RmsStudentCadre;
import com.wnx.job.modules.rms.service.RmsStudentCadreService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wangnaixing
 * @since 2021-12-17
 */
@Service
public class RmsStudentCadreServiceImpl extends ServiceImpl<RmsStudentCadreMapper, RmsStudentCadre> implements RmsStudentCadreService {
    @Resource
    private RmsStudentCadreMapper rmsStudentCadreMapper;


    /**
     * 根据简历ID查询学生干部集合
     * @param resumeId
     * @return
     */
    @Override
    public List<RmsStudentCadre> findStudentCadreListByResumeId(Long resumeId) {
        return rmsStudentCadreMapper.selectList(new QueryWrapper<RmsStudentCadre>().eq("resume_id",resumeId));
    }
}
